package com.traffic.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

import static com.baomidou.mybatisplus.annotation.FieldFill.INSERT;

/**
 * Created by IntelliJ IDEA.
 * User: KingRainGrey
 * Date: 2020/9/24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("cts_app_config")
public class AppConfig implements Serializable {
    private static final long serialVersionUID = 3280455825519600140L;

    @JsonIgnore
    private Long id;
    /**
     * APP启动页
     */
    private Long page;

    /**
     * 平台用户使用协议
     */
    private String platformUserAgreement;

    /**
     * 隐私协议
     */
    private String privacyPolicy;

    private Integer state;

    @TableField(fill = INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
